<template>
  <div class="goods">
    <!-- //把每一个goodlist中的object对象传入goodlistItem中 -->
    <goods-list-item v-for="item in goods"
                     :key="item.id"
                     :goodsItem='item'>

    </goods-list-item>
  </div>
</template>

<script>

import GoodsListItem from './goodsListItem'
export default {
  name: 'goodsList',
  props: {
    goods: {
      type: Array,
      default () {
        return []
      }
    }
  },
  data () {
    return {

    }
  },
  components: {
    GoodsListItem
  },
  methods: {

  },
}
</script>
<style scoped>
.goods {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
</style>